package io.renren.modules.maintenance.service.impl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.modules.maintenance.entity.MGuest;
import io.renren.modules.maintenance.mapper.MGuestMapper;
import io.renren.modules.maintenance.service.IMGuestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author iweb
 * @since 2020-08-07
 */
@Service
public class MGuestServiceImpl extends ServiceImpl<MGuestMapper, MGuest> implements IMGuestService {


    @Autowired
    private IMGuestService imGuestService;


    @Override
    public List<MGuest> getAll() {
        List<MGuest> allGuest = null;
        allGuest = imGuestService.list();
        return allGuest;
    }

    @Override
    public boolean insertGuest(MGuest guest) {

        boolean save = imGuestService.save(guest);

        return save;
    }
}
